package io.renren.modules.tag.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.tag.dao.TagCategoriesDao;
import io.renren.modules.tag.entity.TagCategoriesEntity;
import io.renren.modules.tag.service.TagCategoriesService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("tagCategoriesService")
public class TagCategoriesServiceImpl extends ServiceImpl<TagCategoriesDao, TagCategoriesEntity> implements TagCategoriesService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TagCategoriesEntity> page = this.page(
                new Query<TagCategoriesEntity>().getPage(params),
                new QueryWrapper<TagCategoriesEntity>()
        );

        return new PageUtils(page);
    }

}